package tour.customer.to;

public class MemberTO {
	private String custId;
	private String custPassword;
	private String custName;
	private String custSex;
	private String custNickname;
	private String custBirthdayNumber;
	private String custEmail;
	private String custPhonnum;
	private String custHintQ;
	private String custHintA;
	private String custAddr;
	private String custZipNum;
	
	public MemberTO(){}

	public MemberTO(String custId, String custPassword, String custName,
			String custSex, String custNickname, String custBirthdayNumber,
			String custEmail, String custPhonnum, String custHintQ,
			String custHintA, String custAddr, String custZipNum) {
		super();
		this.custId = custId;
		this.custPassword = custPassword;
		this.custName = custName;
		this.custSex = custSex;
		this.custNickname = custNickname;
		this.custBirthdayNumber = custBirthdayNumber;
		this.custEmail = custEmail;
		this.custPhonnum = custPhonnum;
		this.custHintQ = custHintQ;
		this.custHintA = custHintA;
		this.custAddr = custAddr;
		this.custZipNum = custZipNum;
	}

	public MemberTO(String custId, String custPassword, String name) {
		super();
		this.custId = custId;
		this.custPassword = custPassword;
		this.custName = name;
	}
	
	public MemberTO(String custId,String custName, String custBirthdayNumber, String custHintQ, String custHintA) {
		super();
		this.custId = custId;
		this.custName = custName;
		this.custBirthdayNumber = custBirthdayNumber;
		this.custHintQ = custHintQ;
		this.custHintA = custHintA;
	}

	public MemberTO(String custId, String custPassword, String custEmail,
			String custPhonnum, String custAddr, String custZipNum) {
		super();
		this.custId = custId;
		this.custPassword = custPassword;
		this.custEmail = custEmail;
		this.custPhonnum = custPhonnum;
		this.custAddr = custAddr;
		this.custZipNum = custZipNum;
	}


	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getCustPassword() {
		return custPassword;
	}

	public void setCustPassword(String custPassword) {
		this.custPassword = custPassword;
	}

	public String getCustName() {
		return custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getCustSex() {
		return custSex;
	}

	public void setCustSex(String custSex) {
		this.custSex = custSex;
	}

	public String getCustNickname() {
		return custNickname;
	}

	public void setCustNickname(String custNickname) {
		this.custNickname = custNickname;
	}

	public String getCustBirthdayNumber() {
		return custBirthdayNumber;
	}

	public void setCustBirthdayNumber(String custBirthdayNumber) {
		this.custBirthdayNumber = custBirthdayNumber;
	}

	public String getCustEmail() {
		return custEmail;
	}

	public void setCustEmail(String custEmail) {
		this.custEmail = custEmail;
	}

	public String getCustPhonnum() {
		return custPhonnum;
	}

	public void setCustPhonnum(String custPhonnum) {
		this.custPhonnum = custPhonnum;
	}

	public String getCustHintQ() {
		return custHintQ;
	}

	public void setCustHintQ(String custHintQ) {
		this.custHintQ = custHintQ;
	}

	public String getCustHintA() {
		return custHintA;
	}

	public void setCustHintA(String custHintA) {
		this.custHintA = custHintA;
	}

	public String getCustAddr() {
		return custAddr;
	}

	public void setCustAddr(String custAddr) {
		this.custAddr = custAddr;
	}

	public String getCustZipNum() {
		return custZipNum;
	}

	public void setCustZipNum(String custZipNum) {
		this.custZipNum = custZipNum;
	}

	@Override
	public String toString() {
		return "MemberTO [custId=" + custId + ", custPassword=" + custPassword
				+ ", custName=" + custName + ", custSex=" + custSex
				+ ", custNickname=" + custNickname + ", custBirthdayNumber="
				+ custBirthdayNumber + ", custEmail=" + custEmail
				+ ", custPhonnum=" + custPhonnum + ", custHintQ=" + custHintQ
				+ ", custHintA=" + custHintA + ", custAddr=" + custAddr
				+ ", custZipNum=" + custZipNum + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((custAddr == null) ? 0 : custAddr.hashCode());
		result = prime
				* result
				+ ((custBirthdayNumber == null) ? 0 : custBirthdayNumber
						.hashCode());
		result = prime * result
				+ ((custEmail == null) ? 0 : custEmail.hashCode());
		result = prime * result
				+ ((custHintA == null) ? 0 : custHintA.hashCode());
		result = prime * result
				+ ((custHintQ == null) ? 0 : custHintQ.hashCode());
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		result = prime * result
				+ ((custName == null) ? 0 : custName.hashCode());
		result = prime * result
				+ ((custNickname == null) ? 0 : custNickname.hashCode());
		result = prime * result
				+ ((custPassword == null) ? 0 : custPassword.hashCode());
		result = prime * result
				+ ((custPhonnum == null) ? 0 : custPhonnum.hashCode());
		result = prime * result + ((custSex == null) ? 0 : custSex.hashCode());
		result = prime * result
				+ ((custZipNum == null) ? 0 : custZipNum.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MemberTO other = (MemberTO) obj;
		if (custAddr == null) {
			if (other.custAddr != null)
				return false;
		} else if (!custAddr.equals(other.custAddr))
			return false;
		if (custBirthdayNumber == null) {
			if (other.custBirthdayNumber != null)
				return false;
		} else if (!custBirthdayNumber.equals(other.custBirthdayNumber))
			return false;
		if (custEmail == null) {
			if (other.custEmail != null)
				return false;
		} else if (!custEmail.equals(other.custEmail))
			return false;
		if (custHintA == null) {
			if (other.custHintA != null)
				return false;
		} else if (!custHintA.equals(other.custHintA))
			return false;
		if (custHintQ == null) {
			if (other.custHintQ != null)
				return false;
		} else if (!custHintQ.equals(other.custHintQ))
			return false;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		if (custName == null) {
			if (other.custName != null)
				return false;
		} else if (!custName.equals(other.custName))
			return false;
		if (custNickname == null) {
			if (other.custNickname != null)
				return false;
		} else if (!custNickname.equals(other.custNickname))
			return false;
		if (custPassword == null) {
			if (other.custPassword != null)
				return false;
		} else if (!custPassword.equals(other.custPassword))
			return false;
		if (custPhonnum == null) {
			if (other.custPhonnum != null)
				return false;
		} else if (!custPhonnum.equals(other.custPhonnum))
			return false;
		if (custSex == null) {
			if (other.custSex != null)
				return false;
		} else if (!custSex.equals(other.custSex))
			return false;
		if (custZipNum == null) {
			if (other.custZipNum != null)
				return false;
		} else if (!custZipNum.equals(other.custZipNum))
			return false;
		return true;
	}	
	
	
	
}
